#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <iterator>
using namespace std;

int main()
{
    string word;
    vector<string> text;
    istream_iterator<string> is(cin);
    istream_iterator<string> eof;
    ostream_iterator<string> os(cout, " ");
    
    copy(is, eof, back_inserter(text));

    sort(text.begin(), text.end());

    copy(text.begin(), text.end(), os);

    return 0;
}
